#include "MessageDoRocket.h"
#include "MessagesDefs.h"




MessageDoRocket::MessageDoRocket(std::string id)
:	Message(MessagesDefs::k_MESSAGE_DO_ROCKET, id)
{	
}

MessageDoRocket::~MessageDoRocket()
{

}

void MessageDoRocket::setData(int rocketType)
{
	m_data->seek(MSG_OFFSET_ID);
	m_data->readUTF(); // Skip id

	/*m_data->writeInt(forceX);
	m_data->writeInt(forceY);
	m_data->writeInt(posX);
	m_data->writeInt(posY);
	m_data->writeInt(rotation);	*/
}

/*int MessageDoRocket::getName()
{
	m_data->seek(MSG_OFFSET_ID);
	m_data->readUTF();	// Skip id;
	
	return m_data->readUTF();
}

int MessageDoRocket::getHealth()
{
	m_data->seek(MSG_OFFSET_ID);
	m_data->readUTF();	// Skip id;
	m_data->readUTF();	// Skip name;
	
	return m_data->readInt();
}

int MessageDoRocket::getPosX()
{
	m_data->seek(MSG_OFFSET_ID);
	m_data->readUTF();	// Skip id;
	m_data->readUTF();	// Skip name;
	m_data->readInt();	// Skip health;
	
	return m_data->readInt();
}

int MessageDoRocket::getPosY()
{
	m_data->seek(MSG_OFFSET_ID);
	m_data->readUTF();	// Skip id;
	m_data->readUTF();	// Skip name;
	m_data->readInt();	// Skip health;
	m_data->readInt();	// Skip posX;
	
	return m_data->readInt();
}*/